<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of index
 *
 * @author Nailton
 */

if(isset ($success)){
    echo "<p>{$success}</p>";
}

?>

<fieldset>
<legend>Listagem de Usuarios</legend>
<table class="table">

    <tr>
        <td><b>Nome</b></td>
        <td><b>CPF</b></td>
        <td><b>Escolaridade</b></td>
        <td><b>Profissao</b></td>
        <td><b>Email</b></td>
        <td><b>Senha</b></td>
        <td><b>Categoria</b></td>
        <td><b>Grupo</b></td>
        <td><b>Cidade</b></td>
        <td><b>Endereco</b></td>
        <td><b></b></td>
    </tr>

<?php
    if ($resultado) {
        foreach ($resultado as $row) { ?>

            <tr>
                <td><?php echo $row['nome']?></td>
                <td><?php echo $row['cpf']?></td>
                <td><?php echo $row['escolaridade']?></td>
                <td><?php echo $row['profissao']?></td>
                <td><?php echo $row['email']?></td>
                <td><?php echo $row['senha']?></td>
                <td><?php echo $row['categoria_id']?></td>
                <td><?php echo $row['grupo_id']?></td>
                <td><?php echo $row['cidade_id']?></td>
                <td><?php echo $row['endereco']?></td>
                <td><a href="<?php echo $this->here. "/permissoes/edit/".$row['id']?>">Alterar</a></td>
            </tr>
<?php
        }
    }
?>
    </table>
</fieldset>

